import request from '@/utils/request'

// 查询缴费(推送服务模块)列表
export function listPay(query) {
  return request({
    url: '/money/pay/list',
    method: 'get',
    params: query
  })
}

// 查询缴费(推送服务模块)详细
export function getPay(payId) {
  return request({
    url: '/money/pay/' + payId,
    method: 'get'
  })
}

// 新增缴费(推送服务模块)
export function addPay(data) {
  return request({
    url: '/money/pay',
    method: 'post',
    data: data
  })
}

// 修改缴费(推送服务模块)
export function updatePay(data) {
  return request({
    url: '/money/pay',
    method: 'put',
    data: data
  })
}

// 删除缴费(推送服务模块)
export function delPay(payId) {
  return request({
    url: '/money/pay/' + payId,
    method: 'delete'
  })
}

export function getStatus(payId) {
  return request({
    url: '/money/pay/status/' + payId,
    method: 'get'
  })
}
